

# these next few lines import some of the WMP functions we will
# use in this file.
from frontend.roleApplication import RoleApplication
from frontend.form import Type

class BossManApp(RoleApplication):
   
    def __init__(self):
        
        super(BossManApp, self).__init__("BreakALeg", "BossMan") # use actual work flow name and role name
        self.register_source_step("OwnerInfo", self.identify_owner_form_creator) # use actual name for this task

    def identify_owner_form_creator(self, stepname, form):
        
        form.add_static_label('What is Business Owner Nationality:') # improve this text!
        form.add_field(Type.CHOICE, "Nationality", choices=['Italian', 'Asian', 'Russian'])
        
        form.add_static_label('What is Business type:') # improve this text!
        form.add_field(Type.CHOICE, "BusinessType", choices=['Grocery', 'Laundromat', 'Restaurant'])
        # add at least two fields here, along with any additional static labels you need

if __name__ == '__main__':
    app = BossManApp()
    app.MainLoop()